package net.butfly.bus.server.router.impl;

import net.butfly.bus.server.router.RoutingPolicy;

/**
 * 预置的随机路由策略
 * 
 */
public class RandomRoutingPolicy implements RoutingPolicy {

	public String lookup(String txCode, String version, String[] nodeIDs) {
		return nodeIDs[(int) (Math.random() * nodeIDs.length)];
	}
}
